package com.example.data.factory.common.Dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
public class UpdateDictDataDto {
    @ApiModelProperty("码表数据id")
    @TableId(value = "dict_data_id", type = IdType.AUTO)
    private Integer dictDataId;
    @ApiModelProperty(value = "码值名称",required = true)
    @Pattern(regexp = "^[\\u4E00-\\u9FA5A-Za-z]+$", message = "编码中文名称只能包含中文字符和大小写英文")
    private String dictLabel;

    @ApiModelProperty(value = "码值取值",required = true)
    private String dictValue;

    @ApiModelProperty("码值描述")
    private String descriptoin;
}
